﻿<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="blogsearch.aspx.cs" Inherits="chatblog.blogsearch" Title="搜索博客-老友故事" %>
<%@ Register Assembly="RuleCode.Common" Namespace="RuleCode.Controls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link href="../Stylesheet1.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 100%;
            vertical-align: text-top;
        }
        .style2
        {
            width: 180px;
            vertical-align: top;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div style="width: 100%; height: 80px; border-bottom-color: Gray; border-bottom-width: 1px;
        border-bottom-style: solid; background-image: url(../img/bloghead.gif); background-position: left;
        background-repeat: no-repeat;">
        <asp:HyperLink ID="HyperLink_default" runat="server" Font-Bold="true" Font-Size="Large">首页</asp:HyperLink>
    </div>
<table class="style1">
        <tr>
            <td class="style2">
                <div style="width: 100%">
                    <div style="width: 100%; height: 26px; vertical-align: middle; background-image: url(../images/blogleft1.gif);
                        background-position: left; background-repeat: no-repeat; background-color: #FF9900;">
                        <span style="font-weight: normal; color: White;">公告:</span></div>
                    <div style="background-color: White; width: 150px;">
                        <asp:Literal ID="Literal_desc" runat="server"></asp:Literal></div>
                        <div>
                            <asp:HyperLink ID="HyperLink_addfriend" Target="_blank" runat="server">加为好友</asp:HyperLink>
                    </div>
                </div>
                <asp:GridView ID="GridView_cata" runat="server" AutoGenerateColumns="False" BackColor="White"
                    BorderColor="#999999" Width="100%" ForeColor="Black" HeaderStyle-HorizontalAlign="Left"
                    GridLines="Vertical" BorderStyle="Solid">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <a href='<%#ResolveUrl("~/blog.aspx?cbusercataid=") +System.Web.HttpUtility.UrlEncode(Eval("cbusercataid").ToString())+chatblog.blog.getstr() %>'>
                                    <%#Eval("cbname")%></a>
                            </ItemTemplate>
                            <HeaderTemplate>
                                <div style="width: 100%; height: 26px; vertical-align: middle; background-image: url(../images/blogleft1.gif);
                                    background-position: left; background-repeat: no-repeat; background-color: #FF9900;">
                                    <asp:HyperLink ID="HyperLink_fenlei" runat="server" NavigateUrl='<%#ResolveUrl("~/blog.aspx?")+chatblog.blog.getstr() %>'><b style="color:White;">全部分类</b></asp:HyperLink></div>
                            </HeaderTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#CCCCCC" />
                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#000099" ForeColor="White" Font-Bold="True" />
                    <HeaderStyle HorizontalAlign="Left" />
                    <AlternatingRowStyle BackColor="#CCCCCC" />
                </asp:GridView>
            </td>
            <td style="vertical-align: top">
                <asp:TextBox ID="TextBox_keyword" runat="server" Width="219px"></asp:TextBox>  &nbsp;
                <asp:Button ID="Button_search" runat="server" Text="搜索" /> 
        <asp:GridView ID="GridView_list" runat="server"  Width="100%"
                            HeaderStyle-Height="26px" HeaderStyle-BorderWidth="0px" HeaderStyle-HorizontalAlign="Left"
                            AutoGenerateColumns="False" CaptionAlign="Top" CellPadding="0" GridLines="None"
                            
             DataKeyNames="RECID" >
            <Columns>
                <asp:TemplateField  ItemStyle-BorderColor="#C1C1C1" ItemStyle-BorderStyle="Solid" ItemStyle-BorderWidth="1px">
                    <ItemTemplate>
                     <%#Eval("cblisttype")%>:&nbsp;
                        <a href='<%#ResolveUrl("~/bbsview/") +Eval("cblistid")+".html"%>'>&nbsp;
                            <%#Eval("cbtitle")%></a><%#RuleCode.Table.cblist.jinghualink(Eval("jinghua").ToString())%>&nbsp;
                            
                        
                    </ItemTemplate>
                    <HeaderTemplate>
                                        <div style="width: 100%; height: 26px;  line-height:26px;vertical-align: middle; background-image: url(../images/cat_bg.gif);
                                            background-position: left; background-repeat: no-repeat; background-color: #FF9900;
                                            ">
                                            <span style="font-weight: normal; color: White;">&nbsp;&nbsp;&nbsp;标题</span></div>
                                        </div>
                                    </HeaderTemplate>
                </asp:TemplateField>
                
                <asp:TemplateField ItemStyle-Width="70px"  ItemStyle-BorderColor="#C1C1C1" ItemStyle-BorderStyle="Solid" ItemStyle-BorderWidth="1px">
                    <ItemTemplate>
                        
                        <%#Eval("huifushu").ToString()%>/<%#Eval("chakanshu").ToString()%>
                    </ItemTemplate>
                    <HeaderTemplate>
                    <div style="width: 100%; height: 26px;  line-height:26px;vertical-align: middle; background-color: #FF9900;">
                                            <span style="font-weight: normal; color: White;">回复/查看</span></div>
                         
                    </HeaderTemplate>

<ItemStyle Width="70px"></ItemStyle>
                </asp:TemplateField>
                 <asp:TemplateField ItemStyle-Width="210px"  ItemStyle-BorderColor="#C1C1C1" ItemStyle-BorderStyle="Solid" ItemStyle-BorderWidth="1px">
                    <ItemTemplate>
                    <a href='<%#ResolveUrl("~/blog/") +Eval("recid2")+".html"%>' target="_blank">
                            <%#chatblog.zfunction.getnick(Eval("cbuserid2").ToString())%></a> <br />
                        <%#Eval("jccreatedate2").ToString()%>
                    </ItemTemplate>
                    <HeaderTemplate>
                    <div style="width: 100%; height: 26px;  line-height:26px;vertical-align: middle; background-color: #FF9900;">
                                            <span style="font-weight: normal; color: White;">最后回复</span></div>
                       
                    </HeaderTemplate>

<ItemStyle Width="210px"></ItemStyle>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle />
        </asp:GridView>
        <cc1:WebPager ID="WebPager_list" runat="server" 
             ControlToPaginate="GridView_list" PageSize="30" 
            onpageindexchanged="WebPager_list_PageIndexChanged"/>
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>


</asp:Content>
